from functools import partial

from django.http import JsonResponse
from rest_framework import status


json_response_utf8 = partial(JsonResponse, json_dumps_params={"ensure_ascii": False})
json_response_utf8_ok = partial(
    JsonResponse, json_dumps_params={"ensure_ascii": False}, status=status.HTTP_200_OK
)
